package com.lanou.entity;


import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

// 图书信息
public class Book {
    private Integer bid; //图书id
    private String name; //书名
    private Double price; //价格
    private String author; //作者
    @DateTimeFormat(pattern = "yyyy-MM-dd") //指定时间格式
    private Date time; //出版时间
    private String priImg; //主图
    private String subImgs; //副图

    public Integer getBid() {
        return bid;
    }

    public Book setBid(Integer bid) {
        this.bid = bid;
        return this;
    }

    public String getName() {
        return name;
    }

    public Book setName(String name) {
        this.name = name;
        return this;
    }

    public Double getPrice() {
        return price;
    }

    public Book setPrice(Double price) {
        this.price = price;
        return this;
    }

    public String getAuthor() {
        return author;
    }

    public Book setAuthor(String author) {
        this.author = author;
        return this;
    }

    public Date getTime() {
        return time;
    }

    public Book setTime(Date time) {
        this.time = time;
        return this;
    }

    public String getPriImg() {
        return priImg;
    }

    public Book setPriImg(String priImg) {
        this.priImg = priImg;
        return this;
    }

    public String getSubImgs() {
        return subImgs;
    }

    public Book setSubImgs(String subImgs) {
        this.subImgs = subImgs;
        return this;
    }
}
